package com.itc.bi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@TableName("tb_function_config")
@ApiModel(value = "函数",description = "函数")
@Data
public class functionConfigEntity {
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private Long id;

    @TableField(value = "name")
    @ApiModelProperty(value = "函数名称")
    private String name;

    @TableField(value = "description")
    @ApiModelProperty(value = "函数描述")
    private String description;

    @TableField(value = "function_expression")
    @ApiModelProperty(value = "函数表达式")
    private String functionExpression;

    @TableField(value = "type")
    @ApiModelProperty(value = "类型")
    private String type;

    @TableField(value = "type_label")
    @ApiModelProperty(value = "类型标题")
    private String typeLabel;

    @TableField(value = "arity")
    @ApiModelProperty(value = "参数数量,-1不定参数")
    private Integer arity;

    @TableField(value = "value_type")
    @ApiModelProperty("参数值类型")
    private String valueType;

    @TableField(value = "function_type")
    @ApiModelProperty("函数类型  row:行级函数 聚合函数:union")
    private String functionType;

    @TableField(value = "sort")
    @ApiModelProperty("排序")
    private Integer sort;
}
